﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Harkon.AppServer.cOne.Registry;
using System.Diagnostics;
using Castle.DynamicProxy;
using System.Reflection;
using System.IO;
using Harkon.AppServer.cOne.Service;
using Castle.Core.Interceptor;

namespace Harkon.AppServer.cOne.Service
{
    public class ServiceProxyFactory
    {

        private static ProxyGenerator generator = new ProxyGenerator();

        public static T CreateServiceProxy<T>(IInterceptor interceptor) where T : class
        {
            return generator.CreateInterfaceProxyWithoutTarget<T>(interceptor);
        }
    }
}
